package cn.kgc.springbootday0102.service.impl;

import cn.kgc.springbootday0102.entity.User;
import cn.kgc.springbootday0102.mapper.HelloMapper;
import cn.kgc.springbootday0102.service.HelloService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 课工场
 * @date 2024/5/24
 * @description
 */
@Service
public class HelloServiceImpl  implements HelloService {

    @Resource
    private HelloMapper helloMapper;


    @Override
    public List<User> userList() {

        List<User>  users =  helloMapper.selectUsers();
        return users;
    }
}
